package dao

import (
	"gitee.com/youbeiwuhuan/gin-practice/gin-gorm2/internal/dao/entity"
	"gorm.io/gorm"
)

type IUserDao interface {
	IBaseDao[entity.User]
}

type UserDao struct {
	IBaseDao[entity.User]
}

func NewUserDao(db0 *gorm.DB, model0 entity.User) *UserDao {

	return &UserDao{
		NewBaseDao[entity.User](db0, model0),
	}

}
